package com.lrs.java.designPattern.behavioral.strategy;

public class PercentageDiscountStrategy extends DiscountStrategy {

	private double percentage;
	
	public PercentageDiscountStrategy(double price, double percentage) {
		this.percentage = percentage;
	}

	@Override
	public double calcPrice(double price) {
		return price*(1-percentage/100);
	}

}
